from django.db import models

# Create your models here.
from apps.user.models import User


class ApplyModel(models.Model):
    GENDER_TYPE = (
        (1,"男"),
        (2,"女")
    )

    apply_name = models.CharField(max_length=28,verbose_name="求职名称")

    jobs_require = models.TextField(verbose_name="工作经历",default="腾讯做过CTO-阿里做过CEO-百度做过CFO")

    apply_user = models.ForeignKey(User,on_delete=models.CASCADE,related_name='apply',verbose_name="求职用户")

    gender = models.SmallIntegerField(choices=GENDER_TYPE,default=1,verbose_name="性别")

    #创建时间
    create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间")
    update_time = models.DateTimeField(auto_now=True, verbose_name="更新时间")
    # 查看次数
    look_count = models.CharField(max_length=11, verbose_name="查看次数", default='0')
    class Mete:
        verbose_name = '求职'
        verbose_name_plural = verbose_name

